#include "packet.h"
#include <cstring>


__packet::__packet(){
	datastring = "";
	modes = DEFAULT_MODES;
}

__packet::__packet(char* datastring, rf_mode modes = DEFAULT_MODES){
	strcpy(this->datastring,datastring);
	this->modes = modes;
}

char* __packet::getmsg(){
	return datastring;
}

rf_mode __packet::getmodes(){
	return modes;
}

void __packet::setmodes(rf_mode modes){
	this->modes = modes;
}

void __packet::setdatastring(char* datastring){
	strcpy(this->datastring,datastring);
}